if not Vasa_EngineValues then Vasa_EngineValues = {"Not Available", "Not Available", "Not Available", "Blizzard Frame", "Not Available", "Not Available", "Healbot", "ElvUI"} end

function VAS_Cast(t,u)	
	if Vdebug and Vasa_CheckLastCast(911, 1.0) and vcastdebug then
		if u == nil or u == "target" then u = "player" end
		print("\124cFFFF55FFCast queue: "..GetSpellInfo(t).." at "..UnitName(u)) 
	end
	if PQI_VachiusaGeneral_RotationEngine_value == 4 then
		if u == nil or u == "target" then u = "player" end
		raidfu = u
		vicon = select(3,GetSpellInfo(t))
		CompactRaidFrameContainer_ApplyToFrames(CompactRaidFrameContainer, "normal", VAS_UpdateIcon)
		return true
		--Blizzard Frame
	elseif PQI_VachiusaGeneral_RotationEngine_value == 7 then
		if u == nil or u == "target" then u = "player" end
		raidfu = u
		vicon = select(3,GetSpellInfo(t))
		HealBot_OnEvent_VachiusaUpdate(vicon,raidfu)
		return true
		--Healbot
	elseif PQI_VachiusaGeneral_RotationEngine_value == 8 then
		if u == nil or u == "target" then u = "player" end
		raidfu = u
		vicon = select(3,GetSpellInfo(t))
		ElvUF_OnEvent_VachiusaUpdate(vicon,raidfu)
		--ElvUI
	end
end

function VAS_aoeCast(t,u)
	if Vdebug and Vasa_CheckLastCast(911, 1.0) and vcastdebug then
		if u == nil or u == "target" then u = "player" end
		print("\124cFFFF55FFaoeCast queue: "..GetSpellInfo(t).." at "..UnitName(u)) 
	end
	if PQI_VachiusaGeneral_RotationEngine_value == 4 then
		if u == nil or u == "target" then u = "player" end
		raidfu = u
		vicon = select(3,GetSpellInfo(t))
		CompactRaidFrameContainer_ApplyToFrames(CompactRaidFrameContainer, "normal", VAS_UpdateIcon)	
		return true
		--Blizzard Frame
	elseif PQI_VachiusaGeneral_RotationEngine_value == 7 then
		if u == nil or u == "target" then u = "player" end
		raidfu = u
		vicon = select(3,GetSpellInfo(t))
		HealBot_OnEvent_VachiusaUpdate(vicon,raidfu)
		return true
		--Healbot
	elseif PQI_VachiusaGeneral_RotationEngine_value == 8 then
		if u == nil or u == "target" then u = "player" end
		raidfu = u
		vicon = select(3,GetSpellInfo(t))
		ElvUF_OnEvent_VachiusaUpdate(vicon,raidfu)
		--ElvUI
	end
end

function VAS_RunMacroText(cmd)
	if Vdebug and Vasa_CheckLastCast(911, 1.0) and vcastdebug then
		print("\124cFFFF55FFCast macro "..cmd) 
	end
	if PQI_VachiusaGeneral_RotationEngine_value == 4 then
		return false
		--Blizzard Frame
	elseif PQI_VachiusaGeneral_RotationEngine_value == 7 then
		return false
		--Healbot
	elseif PQI_VachiusaGeneral_RotationEngine_value == 8 then
		return false
		--ElvUI
	end
end

function VAS_UseItemByName(id)
	if Vdebug and Vasa_CheckLastCast(911, 1.0) and vcastdebug then
		print("\124cFFFF55FFUseItemByName "..id) 
	end
	if PQI_VachiusaGeneral_RotationEngine_value == 4 then
		if u == nil or u == "target" then u = "player" end
		raidfu = u
		vicon = select(10,GetItemInfo(id))
		CompactRaidFrameContainer_ApplyToFrames(CompactRaidFrameContainer, "normal", VAS_UpdateIcon)
		return true
		--Blizzard Frame
	elseif PQI_VachiusaGeneral_RotationEngine_value == 7 then
		if u == nil or u == "target" then u = "player" end
		raidfu = u
		vicon = select(10,GetItemInfo(id))
		HealBot_OnEvent_VachiusaUpdate(vicon,raidfu)
		return true
		--Healbot
	elseif PQI_VachiusaGeneral_RotationEngine_value == 8 then
		if u == nil or u == "target" then u = "player" end
		raidfu = u
		vicon = select(10,GetItemInfo(id))
		ElvUF_OnEvent_VachiusaUpdate(vicon,raidfu)
		--ElvUI
	end
	
end

function VAS_UseInventoryItem(id)
	if Vdebug and Vasa_CheckLastCast(911, 1.0) and vcastdebug then
		print("\124cFFFF55FFUseInventoryItem "..id) 
	end
	if PQI_VachiusaGeneral_RotationEngine_value == 4 then
		if u == nil or u == "target" then u = "player" end
		raidfu = u
		vicon = select(10,GetItemInfo(GetInventoryItemID("player", id)))
		CompactRaidFrameContainer_ApplyToFrames(CompactRaidFrameContainer, "normal", VAS_UpdateIcon)
		return true
		--Blizzard Frame
	elseif PQI_VachiusaGeneral_RotationEngine_value == 7 then
		if u == nil or u == "target" then u = "player" end
		raidfu = u
		vicon = select(10,GetItemInfo(GetInventoryItemID("player", id)))
		HealBot_OnEvent_VachiusaUpdate(vicon,raidfu)
		return true
		--Healbot
	elseif PQI_VachiusaGeneral_RotationEngine_value == 8 then
		if u == nil or u == "target" then u = "player" end
		raidfu = u
		vicon = select(10,GetItemInfo(GetInventoryItemID("player", id)))
		ElvUF_OnEvent_VachiusaUpdate(vicon,raidfu)
		--ElvUI
	end
	
end

function VAS_CastShapeshiftForm(id)
	if Vdebug and Vasa_CheckLastCast(911, 1.0) and vcastdebug then
		print("\124cFFFF55FFCastShapeshiftForm "..id) 
	end
	if PQI_VachiusaGeneral_RotationEngine_value == 4 then
		if u == nil or u == "target" then u = "player" end
		raidfu = u
		vicon = GetShapeshiftFormInfo(id)
		CompactRaidFrameContainer_ApplyToFrames(CompactRaidFrameContainer, "normal", VAS_UpdateIcon)
		return true
		--Blizzard Frame
	elseif PQI_VachiusaGeneral_RotationEngine_value == 7 then
		if u == nil or u == "target" then u = "player" end
		raidfu = u
		vicon = GetShapeshiftFormInfo(id)
		HealBot_OnEvent_VachiusaUpdate(vicon,raidfu)
		return true
		--Healbot
	elseif PQI_VachiusaGeneral_RotationEngine_value == 8 then
		if u == nil or u == "target" then u = "player" end
		raidfu = u
		vicon = GetShapeshiftFormInfo(id)
		ElvUF_OnEvent_VachiusaUpdate(vicon,raidfu)
		--ElvUI
	end
	
end

function VAS_AttackTarget()
	if Vdebug and Vasa_CheckLastCast(911, 1.0) and vcastdebug then
		print("\124cFFFF55FFAttackTarget") 
	end
	if PQI_VachiusaGeneral_RotationEngine_value == 4 then
		return false --Nothing to do with Frame
		--Blizzard Frame
	elseif PQI_VachiusaGeneral_RotationEngine_value == 7 then
		return false
		--Healbot
	elseif PQI_VachiusaGeneral_RotationEngine_value == 8 then
		return false
		--ElvUI
	end
end

function VAS_StopAttack()
	if Vdebug and Vasa_CheckLastCast(911, 1.0) and vcastdebug then
		print("\124cFFFF55FFStopAttack") 
	end
	if PQI_VachiusaGeneral_RotationEngine_value == 4 then
		return false --Nothing to do with Frame
		--Blizzard Frame
	elseif PQI_VachiusaGeneral_RotationEngine_value == 7 then
		return false
		--Healbot
	elseif PQI_VachiusaGeneral_RotationEngine_value == 8 then
		return false
		--ElvUI
	end
end

function VAS_TargetUnit(u)
	if Vdebug and Vasa_CheckLastCast(911, 1.0) and vcastdebug then
		print("\124cFFFF55FFTargetUnit "..u) 
	end
	if PQI_VachiusaGeneral_RotationEngine_value == 4 then
		return false --Nothing to do with Frame
		--Blizzard Frame
	elseif PQI_VachiusaGeneral_RotationEngine_value == 7 then
		return false
		--Healbot
	elseif PQI_VachiusaGeneral_RotationEngine_value == 8 then
		return false
		--ElvUI
	end
end

function VAS_SpellStopCasting()
	if Vdebug and Vasa_CheckLastCast(911, 1.0) and vcastdebug then
		print("\124cFFFF55FFSpellStopCasting") 
	end
	if PQI_VachiusaGeneral_RotationEngine_value == 4 then
		return false --Nothing to do with Frame
		--Blizzard Frame
	elseif PQI_VachiusaGeneral_RotationEngine_value == 7 then
		return false
		--Healbot
	elseif PQI_VachiusaGeneral_RotationEngine_value == 8 then
		return false
		--ElvUI
	end
end

function VAS_AutoFocus(u)
	if Vdebug and Vasa_CheckLastCast(911, 1.0) and vcastdebug then
		print("\124cFFFF55FFAutoFocus "..u)  
	end
	if PQI_VachiusaGeneral_RotationEngine_value == 4 then
		return false --Nothing to do with Frame
		--Blizzard Frame
	elseif PQI_VachiusaGeneral_RotationEngine_value == 7 then
		return false
		--Healbot
	elseif PQI_VachiusaGeneral_RotationEngine_value == 8 then
		return false
		--ElvUI
	end
end

function VAS_AcceptProposal()
	if Vdebug and Vasa_CheckLastCast(911, 1.0) and vcastdebug then
		print("\124cFFFF55FFAcceptProposal()")  
	end
	if PQI_VachiusaGeneral_RotationEngine_value == 4 then
		return false --Nothing to do with Frame
		--Blizzard Frame
	elseif PQI_VachiusaGeneral_RotationEngine_value == 7 then
		return false
		--Healbot
	elseif PQI_VachiusaGeneral_RotationEngine_value == 8 then
		return false
		--ElvUI
	end
end